package com.woniuxy.exam.service.impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.woniuxy.commons.entity.Exam;
import com.woniuxy.exam.mapper.ExamMapper;
import com.woniuxy.exam.service.ExamService;

import java.util.List;

/**
@author zouyang
@date 2020/7/22 - 20:49
*/
@Service
public class ExamServiceImpl implements ExamService{

    @Resource
    private ExamMapper examMapper;

    @Override
    public List<Exam> selectAll() {
        return examMapper.selectAll();
    }

    @Override
    public List<Exam> selectAllByIsResit(Byte isResit) {
        return examMapper.selectAllByIsResit(isResit);
    }

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return examMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(Exam record) {
        return examMapper.insert(record);
    }

    @Override
    public int insertSelective(Exam record) {
        return examMapper.insertSelective(record);
    }

    @Override
    public Exam selectByPrimaryKey(Integer id) {
        return examMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(Exam record) {
        return examMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Exam record) {
        return examMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<Exam> selectByAll(Exam record) {
        return examMapper.selectByAll(record);
    }

}
